﻿using System.IO;

public static class Logger {
	
	public static void log(string pathToLog, string mensaje)
	{
		System.IO.StreamWriter sw = System.IO.File.AppendText(pathToLog);
		try
		{
			sw.WriteLine(System.String.Format("{0:G}: {1}.", System.DateTime.Now, mensaje));
		}
		finally
		{
			sw.Close();
		}
	}
	
}